using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace LS.GameKit
{
    public static class LayerMaskExtension
    {
        public static bool LayerCast(this LayerMask mask,LayerMask target)
        {
            return (mask.value & target.value) != 0;
        }

        public static bool LayerCast(this LayerMask mask, int target)
        {
            return (mask.value & mask) != 0;
        }
    }
}
